<%@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Book detail</title>
<meta charset="iso-8859-1" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
		<link href="css/ie6.css" rel="stylesheet" type="text/css" />
	<![endif]-->
<!--[if IE 7]>
        <link href="css/ie7.css" rel="stylesheet" type="text/css" />  
	<![endif]-->
</head>

<body>
	<div id="background">
		<div id="page">

			<div class="header">
				<div class="footer">
					<div class="body">

						<!-- include Menu -->
						<jsp:include page="Menu.jsp" flush="True">
							<jsp:param name="page_call" value="AddBookAdmin" />
						</jsp:include>

						<div id="content">

							<img src="images/cotton-flower.jpg" width="726" height="546"
								alt="" title="">
							<div class="pagetitlebar">Add Book ADMIN.</div>
							<div class="pagecontent">

								<form action="AdminBookList.jsp" method="post">
									<sql:setDataSource dataSource="jdbc/sharewithme" var="sharewithme" />
									<c:catch var="ex2">
										<sql:query var="book" dataSource="${sharewithme}">
											select 	BISBN, BNameThai, BNameEng, BWriter, BPublishing, BEdition, BTranslate, BPrice, BTypeID, BCountPage
											from 	tbbooks 
											where 	BISBN='${param.isbn}'
										</sql:query>
									</c:catch>
									
									<b>หมายเลขทะเบียนหนังสือ </b>: ${book.rows[0].BISBN}<br>
									<b>ประเภทหนังสือ </b>: ${book.rows[0].BTypeID }<br>
									<b>ชื่อหนังสือภาษาไทย </b>: ${book.rows[0].BNameThai }<br>
									<b>ชื่อหนังสือภาษาอังกฤษ </b>: ${book.rows[0].BNameEng }<br>
									<b>จำนวนหน้า </b>: ${book.rows[0].BCountPage }<br>
									<b>ราคา </b>: ${book.rows[0].BPrice }<br>
									<b>ผู้แต่ง </b>: ${book.rows[0].BWriter }<br>
									<b>ผู้แปล </b>: ${book.rows[0].BTranslate }<br>
									<b>สำนักพิมพ์ </b>: ${book.rows[0].BPublishing }<br>
									<b>ภาพปก</b> : <img src="/ShareWithMe/BookCoverImage?isbn=${book.rows[0].BISBN }" alt="ภาพปก"/>
									<br>
									<input type="hidden" value="${book.rows[0].BTypeID }" name="bookType">
									<input type="submit" value="  OK  ">
									
								</form>
							</div>

							<p style="height: 350px;">&nbsp;</p>

						</div>


					</div>
				</div>
				<div class="shadow">&nbsp;</div>
			</div>
		</div>
	</div>
</body>
</html>
</body>
</html>